Primary exercises

In the survey dataset:

  1. Select teenagers, assume age range between and including 10 and 19.

  2. Select all females with pulse equal to 60

  3. Select all male teenagers with pulse above 60.

  4. How many males do smoke and never exercise?

  5. How many females never smoke and frequently exercise?

  6. Reproduce the following tibbles:

6.1) Personal information {Name,Age,Gender,Height} of all teenagers.

6.2) Personal information of males with Height between and inclusive 170 to 180.

Extra exercises

  1. What is the percentage of males who never smoke and frequently exercise? Do the same for female.
  1. What is the age range in teenagers? You may use the range function (?range).
  1. How many males do smoke and never exercise? Use ‘%in%’ operator see ?match for more details.


Copyright © 2021 Biomedical Data Sciences (BDS) | LUMC